// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';

// https://astro.build/config
export default defineConfig({
	integrations: [
		starlight({
		  title: "前端开发框架技术与应用",
		  logo: {
			src: "./src/assets/logo.svg",
		  },
		  social: {
			github: "https://github.com/withastro/starlight",
		  },
		  locales: {
			root: {
			  label: "简体中文",
			  lang: "zh-CN",
			},
		  },
		  editLink: {
			baseUrl: "https://gitee.com/henryong/soft-arch-class/edit/master/",
		  },
		  sidebar: [
			{
			  label: "知识图谱",
			  items: [
				{ label: "课程大纲", link: "/guides/overall/" },
				{ label: "教学日历", link: "/guides/canlendar/" },
			  ],
			  collapsed: true
			},
			// {
			//   label: "教案",
			//   autogenerate: { directory: "reference" },
			//   collapsed: true
			// },
			{
			  label: "实验指南",
			  autogenerate: { directory: "ch" },
			  collapsed: true
			},
			{
			  label: "综合指南",
			  autogenerate: { directory: "practices" },
			  collapsed: true
			},
			// {
			//   label: "作业仓库",
			//   autogenerate: { directory: "homework" },
			//   collapsed: true
			// },
			// {
			//   label: "CSS3",
			//   autogenerate: { directory: "css3" },
			//   collapsed: true
			// },
			// {
			//   label: "移动布局",
			//   autogenerate: { directory: "mobile" },
			//   collapsed: true
			// },
		  ],
		//   customCss: ["./src/tailwind.css", "./src/styles/custom.css"],
		}),
	  ],
});
